<?php


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage EEMacros
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: make_consts.php 109 2009-04-06 08:03:03Z molotsoft@gmail.com $
* @link $HeadURL: http://eemacros.googlecode.com/svn/trunk/Consts/make_consts.php $
*/


foreach (get_defined_constants(TRUE) as $category => $consts) {
	$filename = str_replace(' ', '_', $category) . '_consts.txt';
	$data = implode("\r\n", array_keys($consts));
	file_put_contents($filename, $data);
	//echo $data;
}

$filename = 'all_internal_consts.txt.disabled';
$data = implode("\r\n", array_keys(get_defined_constants()));
file_put_contents($filename, $data);
//echo $data;


?>